package com.zyz.B_流程控制.分支结构练习;

import java.util.Scanner;

/**
 * @author: vick
 * @Date: 2025/3/11
 * @Description:
 * @version: 1.0
 */
public class StudentGrade {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入成绩：");
        int score = scanner.nextInt();

        String grade;
        if (score >= 90) {
            grade = "A";
        }else if (score >=80 ) {
            grade = "B";
        }else if (score >= 70) {
            grade = "C";
        }else if (score >= 60) {
            grade = "D";
        }else {
            grade = "F";
        }

        System.out.println("等级：" + grade);
        scanner.close();
    }
}
